[Android] How to know the size of a file before downloading it?
Posted
by Cristian Castiblanco
on Stack Overflow
See other posts from Stack Overflow
or by Cristian Castiblanco
Published on 2010-06-06T04:15:42Z
Indexed on
2010/06/06
4:22 UTC
Read the original article
Hit count: 188
I have to download a file and I'm using this code, which is basically an AsyncTask
that is meant to update a progress bar. But, since I don't know what's the file size I've been having to use the spinner progress bar. So, how can I get the file size before start downloading it so that I can use a normal progress bar?
© Stack Overflow or respective owner